package bobochat.service;

import bobochat.entity.FriendRequest;
import bobochat.entity.MyFriends;
import bobochat.entity.Users;

import java.util.List;

/**
 * @author shkstart
 * @create 2019-11-08 22:25
 */
public interface UsersService {

    List<Users> queryAllUsers();
    void register(Users users);
    Users login(Users users);
    Users queryUserByUsername(String username);
    Users updateNickname(Users users);
    Users updateFaceImage(Users users);
    Users updatePassword(Users users, String newPssword);
    void sendFriendRequest(FriendRequest friendRequest);
    void deleteFriendRequest(FriendRequest friendRequest);
    FriendRequest queryUserRequestById(String id);
    void addMyFriends(MyFriends myFriends);

}
